﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"
	xmlns:sr="clr-namespace:Divelements.SandRibbon;assembly=Divelements.SandRibbon"
	xmlns:srp="clr-namespace:Divelements.SandRibbon.Primitives;assembly=Divelements.SandRibbon" >

	<!-- Ribbon Brushes -->
	<SolidColorBrush x:Key="RibbonForegroundBrush" Color="#1E395B" />
	<LinearGradientBrush x:Key="RibbonTitlebarBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#C1D4EC" />
		<GradientStop Offset="0.5" Color="#BBCEE6" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="RibbonLowerBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#A9B9CC" />
		<GradientStop Offset="1" Color="#BFD1E6" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonTitlebarTitleBrush" Color="#1E395B" />
	<SolidColorBrush x:Key="RibbonMinimizedDividerBrush" Color="#7994B4" />

	<!-- Ribbon Tab Brushes -->
	<LinearGradientBrush x:Key="RibbonTabBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#EEF5FD" />
		<GradientStop Offset="0.5" Color="#DDE9F6" />
		<GradientStop Offset="1" Color="#D8E4F2" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonTabOuterBorderBrush" Color="#8BA0BC" />

	<!-- TabStripTab Brushes -->
	<LinearGradientBrush x:Key="TabStripTabDividerBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#B8C8DB" />
		<GradientStop Offset="0.3" Color="#B6BABF" />
		<GradientStop Offset="1" Color="#B6BABF" />
	</LinearGradientBrush>
	<Color x:Key="TabStripTabHotOuterBorderColor">#B1B5BA</Color>
	<Color x:Key="TabStripTabHotInnerBorderColor">#F4F6FA</Color>
	<Color x:Key="TabStripTabHotBackgroundColor1">#D6DFEA</Color>
	<Color x:Key="TabStripTabHotBackgroundColor2">#C8D7EA</Color>
	<Color x:Key="TabStripTabHotBackgroundColor3">#C8D7EA</Color>
	<Color x:Key="TabStripTabHotBackgroundColor4">#C8D7E9</Color>
	<Color x:Key="TabStripTabSelectedOuterBorderColor">#B8C9DB</Color>
	<Color x:Key="TabStripTabSelectedLeftInnerBorderColor">#F5FAFF</Color>
	<Color x:Key="TabStripTabSelectedRightInnerBorderColor">#F5FAFF</Color>
	<Color x:Key="TabStripTabSelectedMiddleInnerBorderColor">#F5FAFF</Color>
	<Color x:Key="TabStripTabSelectedBackgroundColor1">#F5FAFF</Color>
	<Color x:Key="TabStripTabSelectedBackgroundColor2">#F4F9FF</Color>
	<Color x:Key="TabStripTabSelectedBackgroundColor3">#F4F9FF</Color>
	<Color x:Key="TabStripTabSelectedBackgroundColor4">#EFF6FD</Color>
	<SolidColorBrush x:Key="TabStripTabNormalForegroundBrush">#1E395B</SolidColorBrush>
	<SolidColorBrush x:Key="TabStripTabSelectedForegroundBrush">#1E395B</SolidColorBrush>

	<!-- RibbonGroup Brushes -->
	<LinearGradientBrush x:Key="RibbonGroupInnerBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#F0F6FC" />
		<GradientStop Offset="0.5" Color="#EDF3F9" />
		<GradientStop Offset="1" Color="#EBF1F7" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="RibbonGroupOuterBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#E2ECF7" />
		<GradientStop Offset="0.5" Color="#ABBED9" />
		<GradientStop Offset="1" Color="#93A7C3" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonGroupHeaderBrush" Color="#384E73" />
	<LinearGradientBrush x:Key="RibbonGroupCollapsedHotBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#EEF5FC" />
		<GradientStop Offset="0.5" Color="#DFEAF4" />
		<GradientStop Offset="1" Color="#D6E1EE" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="RibbonGroupCollapsedPushedBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#E4EDF7" />
		<GradientStop Offset="0.5" Color="#D8E3F1" />
		<GradientStop Offset="1" Color="#CBD8E7" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonGroupButtonBorderBrush" Color="#BAC8D9" />
	<LinearGradientBrush x:Key="RibbonGroupButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0.5" Color="#E3ECF7" />
		<GradientStop Offset="1" Color="#DBE6F2" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonGroupButtonArrow" Color="#72767B" />
	<LinearGradientBrush x:Key="RibbonGroupSeparatorLightBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#F0F6FB" />
		<GradientStop Offset="0.5" Color="#EFF5FA" />
		<GradientStop Offset="1" Color="#E5EEF8" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="RibbonGroupSeparatorDarkBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#D1DEED" />
		<GradientStop Offset="0.5" Color="#93A7C3" />
		<GradientStop Offset="1" Color="#C6D5E7" />
	</LinearGradientBrush>

	<!-- ClientPanel Brushes -->
	<LinearGradientBrush x:Key="ClientPanelBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#C7DAF0" />
		<GradientStop Offset="0.5" Color="#A8BFD9" />
		<GradientStop Offset="1" Color="#84A0BF" />
	</LinearGradientBrush>

	<!-- ButtonGroup Brushes -->
	<SolidColorBrush x:Key="ButtonGroupDividerDarkBrush" Color="#FFFFFF" />
	<LinearGradientBrush x:Key="ButtonGroupDividerLightBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#C7DAF0" />
		<GradientStop Offset="0.5" Color="#A6BDD8" />
		<GradientStop Offset="1" Color="#85A0BF" />
	</LinearGradientBrush>

	<!-- RibbonPopup Brushes -->
	<SolidColorBrush x:Key="RibbonPopupBackgroundBrush" Color="#FFFFFF" />
	<SolidColorBrush x:Key="RibbonPopupOuterBorderBrush" Color="#A7ABB0" />
	<SolidColorBrush x:Key="RibbonPopupInnerBorderBrush" Color="#FFFFFF" />
	<SolidColorBrush x:Key="RibbonPopupForegroundBrush" Color="#1E395B" />
	<SolidColorBrush x:Key="RibbonPopupSeparatorBrush1" Color="#E2E4E7" />
	<SolidColorBrush x:Key="RibbonPopupSeparatorBrush2" Color="#FFFFFF" />
	<SolidColorBrush x:Key="RibbonPopupThumbBorderBrush" Color="#C9D8E8" />
	<LinearGradientBrush x:Key="RibbonPopupThumbBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#EAF4FD" />
		<GradientStop Offset="1" Color="#DDEBF9" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="RibbonPopupGripperDotBrush" Color="#849DBD" />
	<SolidColorBrush x:Key="RibbonPopupGripperDotHighlightBrush" Color="#D4E1F1" />

	<!-- Menu Brushes -->
	<SolidColorBrush x:Key="MenuMarginBackgroundBrush" Color="#FFFFFF" />
	<SolidColorBrush x:Key="MenuMarginBorderBrush" Color="#E2E4E7" />
	<LinearGradientBrush x:Key="MenuArrowBrush" EndPoint="1,0">
		<GradientStop Offset="0" Color="#6A7EC5" />
		<GradientStop Offset="1" Color="#40465A" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="MenuSeparatorBrush1" Color="#C7C8C9" />
	<SolidColorBrush x:Key="MenuSeparatorBrush2" Color="Transparent" />
	<SolidColorBrush x:Key="MenuCheckBackgroundBrush" Color="#FCF1C2" />
	<SolidColorBrush x:Key="MenuCheckBorderBrush" Color="#F29536" />
	<SolidColorBrush x:Key="MenuDisabledForegroundBrush" Color="#A7A7A7" />

	<!-- RibbonGallery Brushes -->
	<SolidColorBrush x:Key="RibbonGalleryBorderBrush" Color="#B1C0D6" />
	<SolidColorBrush x:Key="RibbonGalleryBackgroundBrush" Color="#EDF5FD" />
	<LinearGradientBrush x:Name="RibbonGalleryButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FFFFFF" />
		<GradientStop Offset="0.5" Color="#FBFBFB" />
		<GradientStop Offset="1" Color="#F1F3F4" />
	</LinearGradientBrush>

	<!-- RibbonComboBox Brushes -->
	<SolidColorBrush x:Key="RibbonComboBoxBackgroundBrush" Color="#EDF5FD" />
	<SolidColorBrush x:Key="RibbonComboBoxBorderBrush" Color="#B1C0D6" />
	<SolidColorBrush x:Key="RibbonComboBoxHotBackgroundBrush" Color="#F2F7FC" />
	<SolidColorBrush x:Key="RibbonComboBoxHotBorderBrush" Color="#ABBAD0" />
	<SolidColorBrush x:Key="RibbonComboBoxForegroundBrush" Color="#000000" />
	<LinearGradientBrush x:Key="RibbonComboBoxButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#ECF5FD" />
		<GradientStop Offset="0.5" Color="#E4F0FB" />
		<GradientStop Offset="1" Color="#D4E5F6" />
	</LinearGradientBrush>

	<!-- ApplicationPopup Brushes -->
	<LinearGradientBrush x:Key="ApplicationPopupOuterBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#EDF5FC" />
		<GradientStop Offset="1" Color="#C3D4EB" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ApplicationPopupInnerBorderBrush" EndPoint="1,0">
		<GradientStop Offset="0.9" Color="Transparent" />
		<GradientStop Offset="1.1" Color="#22000000" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ApplicationPopupContentInnerBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#CEDDEB" />
		<GradientStop Offset="1" Color="#86A1BF" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ApplicationPopupBorderBrush" Color="#A7ABB0" />

	<!-- Heading Brushes -->
	<SolidColorBrush x:Key="HeadingBackgroundBrush" Color="#F0F2F5" />

	<!-- ColorPicker Brushes -->
	<SolidColorBrush x:Key="ColorPickerBorderBrush" Color="#E2E4E7" />

	<!-- Button Brushes -->
	<LinearGradientBrush x:Key="ButtonHotOuterBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#ECC757" />
		<GradientStop Offset="0.5" Color="#EFCD50" />
		<GradientStop Offset="1" Color="#F1D449" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonHotInnerBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FCF9E8" />
		<GradientStop Offset="0.5" Color="#FCF3D7" />
		<GradientStop Offset="1" Color="#FDFDEC" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonHotBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#F9EBB2" />
		<GradientStop Offset="0.5" Color="#F8E187" />
		<GradientStop Offset="1" Color="#F9F6DD" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonPushedOuterBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#C2762B" />
		<GradientStop Offset="0.5" Color="#C28838" />
		<GradientStop Offset="1" Color="#C29E47" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonPushedInnerBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#F6C867" />
		<GradientStop Offset="0.5" Color="#F8D172" />
		<GradientStop Offset="1" Color="#FAD77A" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonPushedBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FBD678" />
		<GradientStop Offset="0.1" Color="#FEE287" />
		<GradientStop Offset="0.5" Color="#FFE48A" />
		<GradientStop Offset="1" Color="#FEE287" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonCheckedOuterBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#C28A30" />
		<GradientStop Offset="0.5" Color="#C2963D" />
		<GradientStop Offset="1" Color="#C2A44D" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonCheckedInnerBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FFE575" />
		<GradientStop Offset="0.5" Color="#FFD86B" />
		<GradientStop Offset="1" Color="#FFF27E" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="ButtonCheckedBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FFE575" />
		<GradientStop Offset="0.5" Color="#FFD86B" />
		<GradientStop Offset="1" Color="#FFF27E" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ButtonSplitBackgroundBrush" Color="Transparent" />
	<SolidColorBrush x:Key="ButtonSplitBorderBrush" Color="#EEC757" />
	<SolidColorBrush x:Key="ButtonDisabledForegroundBrush" Color="#87929F" />
	<SolidColorBrush x:Key="ButtonDisabledArrowBrush" Color="#AFBAC7" />
	<SolidColorBrush x:Key="ButtonHotForegroundBrush" Color="#1E395B" />
	<SolidColorBrush x:Key="ButtonPressedForegroundBrush" Color="#1E395B" />

	<!-- QAT Brushes -->
	<SolidColorBrush x:Key="QatBelowBackgroundBrush" Color="#CDDFF5" />
	<SolidColorBrush x:Key="QatBelowOuterBorderBrush" Color="#90A6C1" />
	<SolidColorBrush x:Key="QatBelowInnerBorderBrush" Color="#D5E8FE" />
	<SolidColorBrush x:Key="QatButtonArrow" Color="#000000" />
	<SolidColorBrush x:Key="QatSeparatorLightBrush" Color="#55FFFFFF" />
	<SolidColorBrush x:Key="QatSeparatorDarkBrush" Color="#66000000" />

	<!-- PageScrollViewer Brushes -->
	<LinearGradientBrush x:Key="PageScrollViewerButtonBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#E5F0F9" />
		<GradientStop Offset="0.2" Color="#D1DFF0" />
		<GradientStop Offset="0.2" Color="#C7D8ED" />
		<GradientStop Offset="1" Color="#E8F2FF" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="PageScrollViewerButtonOuterBorderBrush" StartPoint="1,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#94B7E5" />
		<GradientStop Offset="1" Color="#8CA1BD" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="PageScrollViewerButtonInnerBorderBrush" StartPoint="0,0" EndPoint="1,1">
		<GradientStop Offset="0" Color="#F3F6FB" />
		<GradientStop Offset="1" Color="#C8F9FF" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="PageScrollViewerButtonForegroundBrush" StartPoint="0,0" EndPoint="1,0">
		<GradientStop Offset="0" Color="#1A52AD" />
		<GradientStop Offset="1" Color="#0F3168" />
	</LinearGradientBrush>

	<!-- Spinner Brushes -->
	<!--<SolidColorBrush x:Key="SpinnerButtonBorderBrush" Color="#AFC4DF" />
	<LinearGradientBrush x:Key="SpinnerButtonBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#E5F0FF" />
		<GradientStop Offset="0.5" Color="#D9E7F9" />
		<GradientStop Offset="0.5" Color="#CFDFF3" />
		<GradientStop Offset="1" Color="#E7F1FD" />
	</LinearGradientBrush>-->

	<!-- EditingContext Brushes -->
	<LinearGradientBrush x:Key="EditingContextTopBorderBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#EEF3F9" />
		<GradientStop Offset="0.5" Color="#E2EAF3" />
		<GradientStop Offset="1" Color="Transparent" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="EditingContextForegroundBrush" Color="#FFFFFF" />

	<!-- ToolBar Brushes -->
	<SolidColorBrush x:Key="ToolBarTrayBackgroundBrush" Color="#BFDBFF" />
	<LinearGradientBrush x:Key="ToolBarBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0.5" Color="#E3EFFF" />
		<GradientStop Offset="1" Color="#B1D3FF" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="ToolBarBorderBrush" Color="#6F9DD9" />
	<SolidColorBrush x:Key="ToolBarForegroundBrush" Color="Black" />
	<SolidColorBrush x:Key="ToolBarSeparatorDarkBrush" Color="#9AC6FF" />
	<SolidColorBrush x:Key="ToolBarSeparatorLightBrush" Color="#FFFFFF" />
	<SolidColorBrush x:Key="ToolBarGripperDotBrush" Color="#6F9DD9" />
	<SolidColorBrush x:Key="ToolBarGripperHighlightBrush" Color="#FEFEFE" />
	<LinearGradientBrush x:Key="ToolBarChevronBackgroundBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#D7E8FF" />
		<GradientStop Offset="0.5" Color="#ACD1FE" />
		<GradientStop Offset="1" Color="#6F9DD9" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="MenuBarForegroundBrush" Color="Black" />

	<!-- QuickAccessKeyHint Elements -->
	<LinearGradientBrush x:Key="QuickAccessKeyHintBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#FFFFFF" />
		<GradientStop Offset="1" Color="#C9D9EF" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="QuickAccessKeyHintBorderBrush" Color="#767676" />
	<SolidColorBrush x:Key="QuickAccessKeyHintForegroundBrush" Color="#4C4C4C" />

	<!-- StatusBar Brushes -->
	<SolidColorBrush x:Key="StatusBarOuterBorderBrush" Color="#849DBD" />
	<SolidColorBrush x:Key="StatusBarInnerBorderBrush" Color="#F5F9FF" />
	<LinearGradientBrush x:Key="StatusBarBackgroundBrush" StartPoint="0,0" EndPoint="0,1">
		<GradientStop Offset="0" Color="#DCE8F6" />
		<GradientStop Offset="0.5" Color="#C1D0E3" />
		<GradientStop Offset="1" Color="#B3C4D8" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="StatusBarForegroundBrush" Color="#1E395B" />
	<LinearGradientBrush x:Key="StatusBarSeparatorOuterBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#E2ECF8" />
		<GradientStop Offset="0.5" Color="#DDE5F0" />
		<GradientStop Offset="1" Color="#C0CEDF" />
	</LinearGradientBrush>
	<LinearGradientBrush x:Key="StatusBarSeparatorInnerBrush" EndPoint="0,1">
		<GradientStop Offset="0" Color="#CAD8E8" />
		<GradientStop Offset="0.5" Color="#788DA5" />
		<GradientStop Offset="1" Color="#A5B8CD" />
	</LinearGradientBrush>

	<Style TargetType="srp:FileButton">
		<Setter Property="Padding" Value="17,2,17,2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:FileButton">
					<Border Name="PART_OuterBorder" BorderThickness="1,1,1,0" CornerRadius="2,2,0,0">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="WholeHighlighter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_EllipticalHighlight" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border.BorderBrush>
							<SolidColorBrush Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=DarkColor}" />
						</Border.BorderBrush>
						<Border.Background>
							<LinearGradientBrush EndPoint="0,1">
								<GradientStop Offset="-0.2" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=LightColor}" />
								<GradientStop Offset="0.5" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Color}" />
								<GradientStop Offset="1.1" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=LightColor}" />
							</LinearGradientBrush>
						</Border.Background>
						<Border Name="PART_InnerBorder" BorderThickness="1,1,1,0" CornerRadius="1,1,0,0">
							<Border.BorderBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="-30" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=LightColor}" />
									<GradientStop Offset="10" Color="Transparent" />
								</LinearGradientBrush>
							</Border.BorderBrush>
							<Grid>
								<Rectangle Name="PART_EllipticalHighlight">
									<Rectangle.Fill>
										<RadialGradientBrush Center="0.5,1" GradientOrigin="0.5,1" RadiusX="0.5" RadiusY="0.7">
											<GradientStop Offset="-1" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=LightColor}" />
											<GradientStop Offset="1" Color="Transparent" />
										</RadialGradientBrush>
									</Rectangle.Fill>
								</Rectangle>
								<TextBlock Name="PART_TextBlock" Margin="{TemplateBinding Padding}" Text="{TemplateBinding Text}" Foreground="White" HorizontalAlignment="Center" VerticalAlignment="Center">
									<TextBlock.Effect>
										<DropShadowEffect Color="{TemplateBinding DarkColor}" ShadowDepth="0" />
									</TextBlock.Effect>
								</TextBlock>
								<Rectangle Name="WholeHighlighter" Visibility="Collapsed" Fill="#1BFFFFFF" />
							</Grid>
						</Border>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:StatusBar">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource StatusBarBackgroundBrush}" />
		<Setter Property="Foreground" Value="{StaticResource StatusBarForegroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource StatusBarOuterBorderBrush}" />
		<Setter Property="BorderThickness" Value="0,1,0,0" />
		<Setter Property="Padding" Value="4,2,4,2" />
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource StatusBarSeparatorInnerBrush}" />
					<Setter Property="BorderThickness" Value="1,0,1,0" />
					<Setter Property="BorderBrush" Value="{StaticResource StatusBarSeparatorOuterBrush}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Width" Value="3" />
					<Setter Property="Margin" Value="6,0,6,0" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel Orientation="Horizontal" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:StatusBar">
					<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
						<Border BorderThickness="0,1,0,0" BorderBrush="{StaticResource StatusBarInnerBorderBrush}">
							<ItemsPresenter Margin="{TemplateBinding Padding}" />
						</Border>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!--Style TargetType="srp:QuickAccessKeyHint">
		<Setter Property="Padding" Value="4,0,4,0" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="QuickAccessKeyHintForegroundBrush" />
		<Setter Property="Background" Value="QuickAccessKeyHintBackgroundBrush" />
		<Setter Property="BorderBrush" Value="QuickAccessKeyHintBorderBrush" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:QuickAccessKeyHint">
					<Border CornerRadius="2" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
						<TextBlock Text="{TemplateBinding Keys}" Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style-->

	<Style TargetType="sr:ToolBarTray">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource ToolBarTrayBackgroundBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:ToolBarTrayPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ToolBarTray">
					<Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
						<ItemsPresenter />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ScreenTip">
		<Setter Property="Padding" Value="4,2,4,2" />
		<Setter Property="Background" Value="{StaticResource QuickAccessKeyHintBackgroundBrush}" />
		<Setter Property="Foreground" Value="{StaticResource QuickAccessKeyHintForegroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource QuickAccessKeyHintBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ScreenTip">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="ContentState">
								<vsm:VisualState x:Name="Text" />
								<vsm:VisualState x:Name="TextDescription">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DescriptionTextBlock" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="FontWeight">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Bold" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,4,0,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Width">
											<DiscreteObjectKeyFrame KeyTime="0" Value="210" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="TextDescriptionImage">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DescriptionTextBlock" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="FontWeight">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Bold" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,4,0,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Image" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Width">
											<DiscreteObjectKeyFrame KeyTime="0" Value="318" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:DropShadow Margin="6,6,1,1" />
						<Border Name="Border" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="2.5">
							<Grid Margin="{TemplateBinding Padding}">
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="Auto" />
									<RowDefinition Height="Auto" />
								</Grid.RowDefinitions>
								<!-- Text -->
								<TextBlock Name="TextBlock" Grid.ColumnSpan="2" Text="{TemplateBinding Text}" />
								<!-- Image -->
								<Image Name="Image" Grid.Row="1" Source="{TemplateBinding Image}" Stretch="None" Margin="8,7,0,0" VerticalAlignment="Top" Visibility="Collapsed" />
								<!-- Description -->
								<TextBlock Name="DescriptionTextBlock" Grid.Row="1" Grid.Column="1" Text="{TemplateBinding Description}" TextWrapping="Wrap" VerticalAlignment="Top" Visibility="Collapsed" Margin="8,7,2,2" />
							</Grid>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:EditingContext">
		<Setter Property="Foreground" Value="{StaticResource EditingContextForegroundBrush}" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:EditingContext">
					<Grid>
						<Border Margin="0,0,0,-24" BorderThickness="1,0,1,0" BorderBrush="{StaticResource EditingContextTopBorderBrush}">
							<Border BorderThickness="1,0,1,0">
								<Border.BorderBrush>
									<LinearGradientBrush EndPoint="0,1">
										<GradientStop Offset="0.5" Color="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ContrastColor}" />
										<GradientStop Offset="1.1" Color="Transparent" />
									</LinearGradientBrush>
								</Border.BorderBrush>
								<Border BorderThickness="0,4,0,0">
									<Border.BorderBrush>
										<SolidColorBrush Color="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=Color}" />
									</Border.BorderBrush>
									<Border.Background>
										<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
											<GradientStop Offset="-0.2" Color="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=ContrastColor}" />
											<GradientStop Offset="1" Color="Transparent" />
										</LinearGradientBrush>
									</Border.Background>
									<Grid>
										<TextBlock Name="PART_TextBlock" Margin="1,3,1,3" HorizontalAlignment="Center" VerticalAlignment="Top" Text="{TemplateBinding Text}" FontWeight="SemiBold">
											<TextBlock.Effect>
												<DropShadowEffect Color="{Binding RelativeSource={RelativeSource Mode=TemplatedParent}, Path=GlowColor}" ShadowDepth="0.5" Direction="225" BlurRadius="5" />
											</TextBlock.Effect>
										</TextBlock>
									</Grid>
								</Border>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<ControlTemplate x:Key="RibbonButtonTemplate" TargetType="ButtonBase">
		<Grid x:Name="Root" Background="Transparent">
			<vsm:VisualStateManager.VisualStateGroups>
				<vsm:VisualStateGroup x:Name="CommonStates">
					<vsm:VisualState x:Name="Normal" />
					<vsm:VisualState x:Name="MouseOver">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonHotBackgroundBrush}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonHotOuterBorderBrush}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonHotInnerBorderBrush}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</vsm:VisualState>
					<vsm:VisualState x:Name="Pressed">
						<Storyboard>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="Background">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPushedBackgroundBrush}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OuterBorder" Storyboard.TargetProperty="BorderBrush">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPushedOuterBorderBrush}" />
							</ObjectAnimationUsingKeyFrames>
							<ObjectAnimationUsingKeyFrames Storyboard.TargetName="InnerBorder" Storyboard.TargetProperty="BorderBrush">
								<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPushedInnerBorderBrush}" />
							</ObjectAnimationUsingKeyFrames>
						</Storyboard>
					</vsm:VisualState>
				</vsm:VisualStateGroup>
			</vsm:VisualStateManager.VisualStateGroups>
			<Border Name="OuterBorder" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1">
				<Border Name="InnerBorder" BorderBrush="{StaticResource PageScrollViewerButtonInnerBorderBrush}" BorderThickness="1">
					<ContentPresenter
							x:Name="ContentPresenter"
							Content="{TemplateBinding Content}"
							ContentTemplate="{TemplateBinding ContentTemplate}"
							VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
							HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
							Margin="1" />
				</Border>
			</Border>
		</Grid>
	</ControlTemplate>

	<!--<Style TargetType="sr:Spinner">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource RibbonComboBoxBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonComboBoxBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Spinner">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CollapsedState">
								<vsm:VisualState x:Name="Expanded" />
								<vsm:VisualState x:Name="Collapsed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="Highlighted">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxHotBackgroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="BorderBrush">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxHotBorderBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ButtonBackground" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="Auto" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="Auto" />
						</Grid.ColumnDefinitions>
						<Image Source="{TemplateBinding Image}" Stretch="None" VerticalAlignment="Center" Margin="0,0,3,0" />
						<TextBlock Grid.Column="1" Name="TextBlock" Text="{TemplateBinding Header}" VerticalAlignment="Center" />
						<Border Name="Border" Grid.Column="2" Margin="3,0,0,0" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" VerticalAlignment="Center">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="17" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<TextBox BorderThickness="0" Width="{TemplateBinding TextBoxWidth}" Grid.RowSpan="2">
									<TextBox.Template>
										<ControlTemplate TargetType="TextBox">
											<ScrollViewer x:Name="ContentElement" Padding="{TemplateBinding Padding}" BorderThickness="0" IsTabStop="False" />
										</ControlTemplate>
									</TextBox.Template>
								</TextBox>
								<Rectangle Name="ButtonBackground" Grid.Column="1" Grid.RowSpan="2" Fill="{StaticResource SpinnerButtonBackgroundBrush}" Stroke="{StaticResource SpinnerButtonBorderBrush}" StrokeThickness="1" Visibility="Collapsed" />
								<RepeatButton Name="ScrollUpButton" Grid.Column="1" Grid.Row="0" Margin="0" Padding="0" sr:RibbonPopup.ShouldDismissPopup="False" Template="{StaticResource RibbonButtonTemplate}" Background="Transparent" BorderThickness="1" BorderBrush="Transparent" IsTabStop="False">
									<Path Stretch="Uniform" Height="3" Width="5" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
								</RepeatButton>
								<RepeatButton Name="ScrollDownButton" Grid.Column="1" Grid.Row="1" Margin="0,-1,0,1" Padding="0" sr:RibbonPopup.ShouldDismissPopup="False" Template="{StaticResource RibbonButtonTemplate}" Background="Transparent" BorderThickness="1" BorderBrush="Transparent" IsTabStop="False">
									<Path Stretch="Uniform" Height="3" Width="5" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
								</RepeatButton>
							</Grid>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>-->

	<Style TargetType="ScrollBar" x:Name="PagingScrollViewerScrollBarStyle">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="ScrollBar">
					<Grid x:Name="Root">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver" />
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<DoubleAnimation Storyboard.TargetName="Root" Storyboard.TargetProperty="Opacity" To="0.5" Duration="0" />
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>

						<!-- Horizontal Template -->
						<Grid x:Name="HorizontalRoot">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<!-- Repeat Buttons + Thumb -->
							<RepeatButton x:Name="HorizontalLargeDecrease" Grid.Column="0" Width="9" IsTabStop="False" Interval="50" Template="{StaticResource RibbonButtonTemplate}" Background="{StaticResource PageScrollViewerButtonBackgroundBrush}" BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}" BorderThickness="1">
								<Path Stretch="Uniform" Height="5" Width="3" Data="F1 M 110.692,342.252L 110.692,352.682L 104.594,347.467L 110.692,342.252 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
							<RepeatButton x:Name="HorizontalLargeIncrease" Grid.Column="2" Width="9" IsTabStop="False" Interval="50" Template="{StaticResource RibbonButtonTemplate}" Background="{StaticResource PageScrollViewerButtonBackgroundBrush}" BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}" BorderThickness="1">
								<Path Stretch="Uniform" Height="5" Width="3" Data="F1 M 511.047,352.682L 511.047,342.252L 517.145,347.467L 511.047,352.682 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
						</Grid>

						<!-- Vertical Template -->
						<Grid x:Name="VerticalRoot" Visibility="Collapsed">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>

							<!-- Repeat Buttons + Thumb -->
							<RepeatButton x:Name="VerticalLargeDecrease" Grid.Row="0" Height="9" Interval="50" IsTabStop="False" Template="{StaticResource RibbonButtonTemplate}" Background="{StaticResource PageScrollViewerButtonBackgroundBrush}" BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}" BorderThickness="1">
								<Path Stretch="Uniform" Height="3" Width="5" Data="F1 M 541.537,173.589L 531.107,173.589L 536.322,167.49L 541.537,173.589 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
							<RepeatButton x:Name="VerticalLargeIncrease" Grid.Row="2" Height="9" Interval="50" IsTabStop="False" Template="{StaticResource RibbonButtonTemplate}" Background="{StaticResource PageScrollViewerButtonBackgroundBrush}" BorderBrush="{StaticResource PageScrollViewerButtonOuterBorderBrush}" BorderThickness="1">
								<Path Stretch="Uniform" Height="3" Width="5" Data="F1 M 531.107,321.943L 541.537,321.943L 536.322,328.042L 531.107,321.943 Z" Fill="{StaticResource PageScrollViewerButtonForegroundBrush}" />
							</RepeatButton>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style TargetType="srp:PagingScrollViewer">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="ScrollViewerStyle">
			<Setter.Value>
				<Style TargetType="ScrollViewer">
					<Setter Property="BorderThickness" Value="0" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Padding" Value="0" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="ScrollViewer">
								<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
									<Grid Background="{TemplateBinding Background}">
										<ScrollContentPresenter x:Name="ScrollContentPresenter"
                                                    Cursor="{TemplateBinding Cursor}"
                                                    Margin="{TemplateBinding Padding}"
                                                    ContentTemplate="{TemplateBinding ContentTemplate}" />

										<ScrollBar x:Name="VerticalScrollBar" IsTabStop="False" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}" Orientation="Vertical" Style="{StaticResource PagingScrollViewerScrollBarStyle}"
                                       ViewportSize="{TemplateBinding ViewportHeight}" Maximum="{TemplateBinding ScrollableHeight}" Minimum="0" Value="{TemplateBinding VerticalOffset}" />
										<ScrollBar x:Name="HorizontalScrollBar" IsTabStop="False" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}" Orientation="Horizontal" Style="{StaticResource PagingScrollViewerScrollBarStyle}"
                                       ViewportSize="{TemplateBinding ViewportWidth}" Maximum="{TemplateBinding ScrollableWidth}" Minimum="0" Value="{TemplateBinding HorizontalOffset}" />
									</Grid>
								</Border>
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:PagingScrollViewer">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="OrientationState">
								<vsm:VisualState x:Name="Horizontal" />
								<vsm:VisualState x:Name="Vertical">
									<Storyboard>
										<!--ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollViewer" Storyboard.TargetProperty="HorizontalScrollBarVisibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Disabled" />
										</ObjectAnimationUsingKeyFrames-->
										<!--ObjectAnimationUsingKeyFrames Storyboard.TargetName="ScrollViewer" Storyboard.TargetProperty="VerticalScrollBarVisibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Auto" />
										</ObjectAnimationUsingKeyFrames-->
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<ScrollViewer Name="ScrollViewer" Style="{TemplateBinding ScrollViewerStyle}" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Disabled" IsTabStop="False">
							<ScrollViewer.Content>
								<ContentControl Name="MouseInterceptor" Content="{TemplateBinding Content}" IsTabStop="False" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" />
							</ScrollViewer.Content>
						</ScrollViewer>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="srp:Splitter">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Padding" Value="1" />
		<Setter Property="HorizontalContentAlignment" Value="Center" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:Splitter">
					<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
						<ContentPresenter
                                x:Name="ContentPresenter"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:QuickAccessToolBar">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource QatBelowBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource QatBelowOuterBorderBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ToolBar">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="HostingState">
								<vsm:VisualState x:Name="NotHosted" />
								<vsm:VisualState x:Name="HostedAboveRibbon" />
								<vsm:VisualState x:Name="HostedBelowRibbon">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BelowBackgroundGrid" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ToolBarPanel" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="2,2,7,2" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TogglePositionMenu" Storyboard.TargetProperty="Text">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Show Above the Ribbon" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ToolbarChevronSeparator" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="ChevronedItemsState">
								<vsm:VisualState x:Name="NoChevronedItems" />
								<vsm:VisualState x:Name="HasChevronedItems">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="MainPopupButtonPath" Storyboard.TargetProperty="Data">
											<DiscreteObjectKeyFrame KeyTime="0" Value="M 0,0 L 2.5,2.5 L 0,5 M 4.5,0 L 7,2.5 L 4.5,5" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Grid Name="BelowBackgroundGrid" Visibility="Collapsed">
							<Border BorderThickness="0,1,0,1" BorderBrush="{TemplateBinding BorderBrush}">
								<Border BorderThickness="0,1,0,1" BorderBrush="{StaticResource QatBelowInnerBorderBrush}" Background="{TemplateBinding Background}" />
							</Border>
						</Grid>
						<Grid HorizontalAlignment="Left">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<srp:ToolBarPanel Name="ToolBarPanel" Margin="4,0,2,1" />
							<Border Name="ToolbarChevronSeparator" Grid.Column="1" BorderThickness="1" BorderBrush="{StaticResource QatSeparatorLightBrush}" CornerRadius="1" Width="3" Background="{StaticResource QatSeparatorDarkBrush}" Margin="0,4,0,4" />
							<sr:Button Name="MainPopupButton" Grid.Column="2" VerticalAlignment="Center" Width="13" Height="22" ShowDropDown="False">
								<Path Name="MainPopupButtonPath" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,2,0,0" Data="M 0,-2.5 L 0,-1.5 L 7,-1.5 L 7,-2.5 M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource QatButtonArrow}" />
								<sr:Button.Popup>
									<sr:RibbonPopup Name="CustomizePopup">
										<sr:Menu>
											<sr:MenuItem Name="TogglePositionMenu" Text="Show Below the Ribbon" />
											<sr:Separator />
											<sr:MenuItem Name="ToggleMinimizationMenu" Text="Minimize the Ribbon" />
										</sr:Menu>
									</sr:RibbonPopup>
								</sr:Button.Popup>
							</sr:Button>
							<sr:RibbonPopup Name="ChevronPopup">
								<StackPanel Orientation="Horizontal">
									<StackPanel Name="AlternatePanel" Orientation="Horizontal" />
									<sr:Button Name="AlternatePopupButton" ShowDropDown="False" VerticalAlignment="Center" Padding="-1,2,-2,2">
										<Path HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,2,0,0" Data="M 0,-2.5 L 0,-1.5 L 7,-1.5 L 7,-2.5 M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource QatButtonArrow}" />
									</sr:Button>
								</StackPanel>
							</sr:RibbonPopup>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ToolBar">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Padding" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource ToolBarForegroundBrush}" />
		<Setter Property="Background" Value="{StaticResource ToolBarBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource ToolBarBorderBrush}" />
		<Setter Property="BorderThickness" Value="0,0,0,1" />
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource ToolBarSeparatorDarkBrush}" />
					<Setter Property="BorderThickness" Value="0,0,1,0" />
					<Setter Property="BorderBrush" Value="{StaticResource ToolBarSeparatorLightBrush}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Width" Value="2" />
					<Setter Property="Margin" Value="2,4,2,4" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ToolBar">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="TrayState">
								<vsm:VisualState x:Name="NotInTray" />
								<vsm:VisualState x:Name="InTray">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Border" Storyboard.TargetProperty="CornerRadius">
											<DiscreteObjectKeyFrame KeyTime="0" Value="3,3,3,4" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="GripperState">
								<vsm:VisualState x:Name="HideGripper" />
								<vsm:VisualState x:Name="ShowGripper">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Gripper" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="ChevronState">
								<vsm:VisualState x:Name="HideChevron" />
								<vsm:VisualState x:Name="ShowChevron">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Chevron" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="ChevronedItemsState">
								<vsm:VisualState x:Name="NoChevronedItems" />
								<vsm:VisualState x:Name="HasChevronedItems">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ChevronItemsButton" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<srp:Splitter Name="Gripper" Grid.Column="0" Visibility="Collapsed" Cursor="SizeWE">
									<srp:Splitter.Template>
										<ControlTemplate TargetType="srp:Splitter">
											<Border Background="Transparent">
												<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,0,0">
													<Path Fill="{StaticResource ToolBarGripperHighlightBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 0,4 L 2,4 L 2,6 L 0,6 Z M 0,8 L 2,8 L 2,10 L 0,10 Z M 0,12 L 2,12 L 2,14 L 0,14 Z" Margin="1,1,0,0" />
													<Path Fill="{StaticResource ToolBarGripperDotBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 0,4 L 2,4 L 2,6 L 0,6 Z M 0,8 L 2,8 L 2,10 L 0,10 Z M 0,12 L 2,12 L 2,14 L 0,14 Z" />
												</Grid>
											</Border>
										</ControlTemplate>
									</srp:Splitter.Template>
								</srp:Splitter>
								<srp:ToolBarPanel Name="ToolBarPanel" Grid.Column="1" Margin="{TemplateBinding Padding}" />

								<!-- Chevron -->
								<Grid Name="Chevron" Grid.Column="2" Visibility="Collapsed">
									<Border Background="{StaticResource ToolBarChevronBackgroundBrush}" CornerRadius="0,3,3,0" Width="14" />
									<Border Background="{TemplateBinding Background}" CornerRadius="0,3,3,0" Width="3" HorizontalAlignment="Left" />
									<sr:Button Name="ChevronItemsButton" ShowDropDown="False" Visibility="Collapsed" Margin="2,0,0,0" Padding="3,5,1,2">
										<Path Data="M 0,0 L 2.5,2.5 L 0,5 M 4.5,0 L 7,2.5 L 4.5,5" Fill="Black" Stroke="White" />
										<sr:Button.Popup>
											<sr:RibbonPopup>
												<StackPanel Name="AlternatePanel" Orientation="Horizontal" />
											</sr:RibbonPopup>
										</sr:Button.Popup>
									</sr:Button>
								</Grid>
							</Grid>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:MenuBar">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Padding" Value="2,1,2,2" />
		<Setter Property="Foreground" Value="{StaticResource MenuBarForegroundBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:WrapPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ToolBar">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="GripperState">
								<vsm:VisualState x:Name="HideGripper" />
								<vsm:VisualState x:Name="ShowGripper">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Gripper" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border Name="Border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="Auto" />
									<ColumnDefinition Width="*" />
								</Grid.ColumnDefinitions>
								<srp:Splitter Name="Gripper" Grid.Column="0" Visibility="Collapsed" Cursor="SizeWE">
									<srp:Splitter.Template>
										<ControlTemplate TargetType="srp:Splitter">
											<Border Background="Transparent">
												<Grid HorizontalAlignment="Center" VerticalAlignment="Center" Margin="3,0,0,0">
													<Path Fill="{StaticResource ToolBarGripperHighlightBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 0,4 L 2,4 L 2,6 L 0,6 Z M 0,8 L 2,8 L 2,10 L 0,10 Z M 0,12 L 2,12 L 2,14 L 0,14 Z" Margin="1,1,0,0" />
													<Path Fill="{StaticResource ToolBarGripperDotBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 0,4 L 2,4 L 2,6 L 0,6 Z M 0,8 L 2,8 L 2,10 L 0,10 Z M 0,12 L 2,12 L 2,14 L 0,14 Z" />
												</Grid>
											</Border>
										</ControlTemplate>
									</srp:Splitter.Template>
								</srp:Splitter>
								<ItemsPresenter Grid.Column="1" Margin="{TemplateBinding Padding}" />
							</Grid>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ColorPicker">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Padding" Value="2,0,2,0" />
		<Setter Property="BorderBrush" Value="{StaticResource ColorPickerBorderBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ColorPicker">
					<StackPanel>
						<Grid Name="StandardGrid" />
						<Grid Name="GraduationsGrid" />
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:Heading">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource HeadingBackgroundBrush}" />
		<Setter Property="Padding" Value="11,1,5,1" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="FontWeight" Value="Bold" />
		<Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Heading">
					<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}">
						<ContentPresenter
                                x:Name="contentPresenter"
                                Content="{TemplateBinding Content}"
                                ContentTemplate="{TemplateBinding ContentTemplate}"
                                VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
                                HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
                                Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ComboBoxItem">
		<Setter Property="Padding" Value="4" />
		<Setter Property="HorizontalContentAlignment" Value="Left" />
		<Setter Property="VerticalContentAlignment" Value="Center" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="TabNavigation" Value="Local" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ComboBoxItem">
					<Grid Background="{TemplateBinding Background}">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="ImageState">
								<vsm:VisualState x:Name="NoImage" />
								<vsm:VisualState x:Name="Image">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ImagePart" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlighter" Storyboard.TargetProperty="Visibility" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Disabled" />
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="SelectionStates">
								<vsm:VisualState x:Name="Unselected" />
								<vsm:VisualState x:Name="Selected">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlighter" Storyboard.TargetProperty="Visibility" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="FocusStates">
								<vsm:VisualState x:Name="Focused">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlighter" Storyboard.TargetProperty="Visibility" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Unfocused"/>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:Highlighter Name="Highlighter" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1.5" InteractionState="Hot" Visibility="Collapsed">
							<srp:Highlighter.HotOuterBorderBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#DBCE99" />
									<GradientStop Offset="0.5" Color="#C0A776" />
									<GradientStop Offset="1" Color="#D7D0B3" />
								</LinearGradientBrush>
							</srp:Highlighter.HotOuterBorderBrush>
							<srp:Highlighter.HotInnerBorderBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#FFFFFB" />
									<GradientStop Offset="0.5" Color="#FFF9E3" />
									<GradientStop Offset="0.5" Color="#FFF2C9" />
									<GradientStop Offset="1" Color="#FFF8B5" />
								</LinearGradientBrush>
							</srp:Highlighter.HotInnerBorderBrush>
							<srp:Highlighter.HotBackgroundBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#FFFDE9" />
									<GradientStop Offset="0.5" Color="#FFEBAB" />
									<GradientStop Offset="0.5" Color="#FFD562" />
									<GradientStop Offset="1" Color="#FFE17F" />
								</LinearGradientBrush>
							</srp:Highlighter.HotBackgroundBrush>
						</srp:Highlighter>
						<Grid Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
							</Grid.ColumnDefinitions>
							<Image Name="ImagePart" Source="{TemplateBinding Image}" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,0,5,0" Visibility="Collapsed" />
							<ContentPresenter x:Name="contentPresenter" Grid.Column="1" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ComboBox">
		<Setter Property="Background" Value="{StaticResource RibbonComboBoxBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonComboBoxBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="HorizontalContentAlignment" Value="Left"/>
		<Setter Property="TabNavigation" Value="Once" />
		<Setter Property="Foreground" Value="{StaticResource RibbonComboBoxForegroundBrush}" />
		<Setter Property="Padding" Value="3,3,3,2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ComboBox">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CommonStates">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterBorder" Storyboard.TargetProperty="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxHotBackgroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenterBorder" Storyboard.TargetProperty="BorderBrush">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxHotBorderBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownToggle" Storyboard.TargetProperty="IsEnabled">
											<DiscreteObjectKeyFrame KeyTime="0" Value="True" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownToggle" Storyboard.TargetProperty="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxButtonBackgroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownToggle" Storyboard.TargetProperty="BorderBrush">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource RibbonComboBoxBorderBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Disabled" />
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="FocusStates">
								<vsm:VisualState x:Name="Focused" />
								<vsm:VisualState x:Name="Unfocused"/>
								<vsm:VisualState x:Name="FocusedDropDown">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Duration="00:00:00" Storyboard.TargetName="PopupBorder" Storyboard.TargetProperty="(UIElement.Visibility)">
											<DiscreteObjectKeyFrame KeyTime="00:00:00" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border x:Name="ContentPresenterBorder" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<ContentPresenter x:Name="ContentPresenter" Margin="{TemplateBinding Padding}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" >
									<TextBlock Text=" " />
								</ContentPresenter>
								<sr:Button x:Name="DropDownToggle" Grid.Column="1" Margin="0,-1,-1,-1" IsEnabled="False" AutoSize="False" AutoCheck="Toggle" sr:RibbonPopup.ShouldDismissPopup="False">
									<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource RibbonGroupButtonArrow}" />
								</sr:Button>
							</Grid>
						</Border>
						<Popup x:Name="Popup">
							<Border x:Name="PopupBorder" HorizontalAlignment="Stretch">
								<Grid>
									<srp:DropShadow Margin="6,6,1,1" />
									<Border Background="{StaticResource RibbonPopupBackgroundBrush}" BorderThickness="1" BorderBrush="{StaticResource RibbonPopupOuterBorderBrush}" CornerRadius="2">
										<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1" CornerRadius="1">
											<ScrollViewer x:Name="ScrollViewer" BorderThickness="0" Padding="1">
												<ItemsPresenter />
											</ScrollViewer>
										</Border>
									</Border>
								</Grid>
							</Border>
						</Popup>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:RibbonGallery">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonGalleryBorderBrush}" />
		<Setter Property="Background" Value="{StaticResource RibbonGalleryBackgroundBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:WrapPanel ItemWidth="{TemplateBinding ItemWidth}" ItemHeight="{TemplateBinding ItemHeight}" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonGallery">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="CollapsedState">
								<vsm:VisualState x:Name="Expanded" />
								<vsm:VisualState x:Name="Collapsed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ExpandedBorder" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapsedButton" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="PopupItemsState">
								<vsm:VisualState x:Name="HasPopupItems" />
								<vsm:VisualState x:Name="NoPopupItems">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PopupItemsSeparator" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border Name="ExpandedBorder" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" CornerRadius="0,1,1,0">
							<Grid>
								<Grid.ColumnDefinitions>
									<ColumnDefinition Width="*" />
									<ColumnDefinition Width="Auto" />
								</Grid.ColumnDefinitions>
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
									<RowDefinition Height="*" />
									<RowDefinition Height="*" />
								</Grid.RowDefinitions>
								<ScrollViewer Name="ScrollViewer" Grid.RowSpan="3" VerticalScrollBarVisibility="Hidden" IsTabStop="False" BorderThickness="0" Height="{TemplateBinding ViewportHeight}" Padding="0">
									<Border Name="InRibbonHost" Width="{TemplateBinding ViewportWidth}" HorizontalAlignment="Left">
										<ItemsPresenter Name="ItemsPresenter" Margin="0,1,0,0" />
									</Border>
								</ScrollViewer>
								<sr:Button Name="ScrollUpButton" Grid.Column="1" Grid.Row="0" IsTabStop="False" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,-1,-1,0" Background="{StaticResource RibbonGalleryButtonBackgroundBrush}" Width="15" sr:RibbonPopup.ShouldDismissPopup="False">
									<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,3.5 L 3.5,0 L 7,3.5" Fill="{StaticResource RibbonGroupButtonArrow}" />
								</sr:Button>
								<sr:Button Name="ScrollDownButton" Grid.Column="1" Grid.Row="1" IsTabStop="False" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,-1,-1,-1" Background="{StaticResource RibbonGalleryButtonBackgroundBrush}" Width="15" sr:RibbonPopup.ShouldDismissPopup="False">
									<Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource RibbonGroupButtonArrow}" />
								</sr:Button>
								<sr:Button Name="PopupButton" Grid.Column="1" Grid.Row="2" BorderBrush="{TemplateBinding BorderBrush}" Margin="0,0,-1,-1" Background="{StaticResource RibbonGalleryButtonBackgroundBrush}" Width="15" ShowDropDown="False">
									<Path HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,2,0,0" Data="M 0,-2.5 L 0,-1.5 L 7,-1.5 L 7,-2.5 M 0,0 L 3.5,3.5 L 7,0" Fill="{StaticResource RibbonGroupButtonArrow}" />
								</sr:Button>
							</Grid>
						</Border>
						<sr:Button Name="CollapsedButton" Size="Large" LargeImage="{TemplateBinding Image}" Text="{TemplateBinding Text}" Visibility="Collapsed">
							<sr:RibbonPopup ResizeMode="{TemplateBinding ResizeMode}">
								<ScrollViewer VerticalScrollBarVisibility="Visible" IsTabStop="False" BorderThickness="0" Margin="1" Height="{TemplateBinding PopupViewportHeight}" Padding="0">
									<Border Name="PopupHost" Width="{TemplateBinding PopupViewportWidth}" HorizontalAlignment="Left">
									</Border>
								</ScrollViewer>
								<sr:Separator Name="PopupItemsSeparator" />
								<ItemsControl ItemsSource="{TemplateBinding PopupItems}" />
							</sr:RibbonPopup>
						</sr:Button>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:Gallery">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:WrapPanel ItemWidth="{TemplateBinding ItemWidth}" ItemHeight="{TemplateBinding ItemHeight}" />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Gallery">
					<ScrollViewer VerticalScrollBarVisibility="Visible" IsTabStop="False" BorderThickness="0" Margin="1" Height="{TemplateBinding ViewportHeight}" Padding="0">
						<ItemsPresenter Width="{TemplateBinding ViewportWidth}" HorizontalAlignment="Left" />
					</ScrollViewer>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:MenuItem">
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="2" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:MenuItem">
					<Grid Background="{TemplateBinding Background}">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="Highlighted" />
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MenuDisabledForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Image" Storyboard.TargetProperty="Opacity">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0.4" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="PopupState">
								<vsm:VisualState x:Name="NoPopup" />
								<vsm:VisualState x:Name="HasPopup">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DropDownIndicator" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="CheckState">
								<vsm:VisualState x:Name="Unchecked" />
								<vsm:VisualState x:Name="Checked">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckAndImageBorder" Storyboard.TargetProperty="Background">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MenuCheckBackgroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CheckAndImageBorder" Storyboard.TargetProperty="BorderBrush">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource MenuCheckBorderBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:Highlighter Name="Highlighter" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="1.5">
							<srp:Highlighter.HotOuterBorderBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#DBCE99" />
									<GradientStop Offset="0.5" Color="#C0A776" />
									<GradientStop Offset="1" Color="#D7D0B3" />
								</LinearGradientBrush>
							</srp:Highlighter.HotOuterBorderBrush>
							<srp:Highlighter.HotInnerBorderBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#FFFFFB" />
									<GradientStop Offset="0.5" Color="#FFF9E3" />
									<GradientStop Offset="0.5" Color="#FFF2C9" />
									<GradientStop Offset="1" Color="#FFF8B5" />
								</LinearGradientBrush>
							</srp:Highlighter.HotInnerBorderBrush>
							<srp:Highlighter.HotBackgroundBrush>
								<LinearGradientBrush EndPoint="0,1">
									<GradientStop Offset="0" Color="#FFFDE9" />
									<GradientStop Offset="0.5" Color="#FFEBAB" />
									<GradientStop Offset="0.5" Color="#FFD562" />
									<GradientStop Offset="1" Color="#FFE17F" />
								</LinearGradientBrush>
							</srp:Highlighter.HotBackgroundBrush>
						</srp:Highlighter>
						<Grid Margin="{TemplateBinding Padding}">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="7" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="22" />
							</Grid.ColumnDefinitions>
							<Border Name="CheckAndImageBorder" Margin="0,-1,3,-1" BorderThickness="1" CornerRadius="2">
								<Grid Margin="1">
									<Rectangle Width="16" Height="16" />
									<Path Name="CheckMark" Data="M 1,5 Q 2,6 3,9 Q 5,3 7,0" Stroke="#283376" Visibility="Collapsed" HorizontalAlignment="Center" VerticalAlignment="Center" StrokeThickness="1.2" />
									<Image Name="Image" Source="{TemplateBinding Image}" Stretch="None" HorizontalAlignment="Center" VerticalAlignment="Center" />
								</Grid>
							</Border>
							<TextBlock Name="TextBlock" Grid.Column="2" Margin="2,1,2,1" Text="{TemplateBinding Text}" VerticalAlignment="Center" />
							<Path Name="DropDownIndicator" Visibility="Collapsed" Grid.Column="3" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,9,0" Fill="{StaticResource MenuArrowBrush}" Data="M 0,0 L 4,3.5 L 0,7 Z" />
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:Menu">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource MenuMarginBackgroundBrush}" />
		<Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource MenuMarginBorderBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource MenuSeparatorBrush2}" />
					<Setter Property="BorderThickness" Value="0,1,0,0" />
					<Setter Property="BorderBrush" Value="{StaticResource MenuSeparatorBrush1}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Height" Value="2" />
					<Setter Property="Margin" Value="32,0,0,0" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Menu">
					<Grid>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="25" />
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<Border Background="{TemplateBinding Background}" BorderThickness="0,0,1,0" BorderBrush="{TemplateBinding BorderBrush}" />
						<ItemsPresenter Grid.ColumnSpan="2" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ApplicationPopup">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource RibbonPopupBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource ApplicationPopupBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource RibbonPopupSeparatorBrush2}" />
					<Setter Property="BorderThickness" Value="0,1,0,0" />
					<Setter Property="BorderBrush" Value="{StaticResource RibbonPopupSeparatorBrush1}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Height" Value="2" />
					<Setter Property="Margin" Value="47,0,0,0" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonPopup">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:DropShadow Margin="6,6,1,1" />
						<Border Name="PART_OuterBorder" CornerRadius="2" BorderThickness="0,1,0,0" Background="{TemplateBinding Background}">
							<Border.BorderBrush>
								<SolidColorBrush Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Launcher.DarkColor}" />
							</Border.BorderBrush>
							<Border BorderThickness="0,1,0,0" CornerRadius="1">
								<Border.BorderBrush>
									<SolidColorBrush Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Launcher.LightColor}" />
								</Border.BorderBrush>
								<Border BorderThickness="1,0,1,1" CornerRadius="0,0,2,2" BorderBrush="{TemplateBinding BorderBrush}">
									<Grid>
										<Grid.RowDefinitions>
											<RowDefinition Height="2" />
											<RowDefinition Height="*" />
										</Grid.RowDefinitions>
										<!-- Top Strip of Colour -->
										<Border Grid.Row="0" CornerRadius="0,1,0,0">
											<Border.Background>
												<LinearGradientBrush EndPoint="1,0">
													<GradientStop Offset="0.5" Color="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Launcher.Color}" />
													<GradientStop Offset="1" Color="Transparent" />
												</LinearGradientBrush>
											</Border.Background>
										</Border>
										<!-- Contents -->
										<Grid Grid.Row="1">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="Auto" />
												<ColumnDefinition Width="*" />
											</Grid.ColumnDefinitions>
											<!-- Left Pane -->
											<Border BorderThickness="0,0,1,0" BorderBrush="{StaticResource ApplicationPopupContentInnerBorderBrush}">
												<Grid>
													<Rectangle Fill="{StaticResource ApplicationPopupOuterBorderBrush}" />
													<Rectangle Fill="{StaticResource ApplicationPopupInnerBorderBrush}" />
													<StackPanel>
														<ItemsPresenter />
													</StackPanel>
												</Grid>
											</Border>
											<!-- Right Pane -->
											<Border Name="PART_ContentArea" Grid.Column="1">
												<ContentPresenter Name="ContentPresenter" MinWidth="100" />
											</Border>
										</Grid>
									</Grid>
								</Border>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:RibbonPopup">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource RibbonPopupBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonPopupOuterBorderBrush}" />
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Foreground" Value="{StaticResource RibbonPopupForegroundBrush}" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<StackPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource RibbonPopupSeparatorBrush2}" />
					<Setter Property="BorderThickness" Value="0,1,0,0" />
					<Setter Property="BorderBrush" Value="{StaticResource RibbonPopupSeparatorBrush1}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Height" Value="2" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonPopup">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="ResizeState">
								<vsm:VisualState x:Name="NoResize" />
								<vsm:VisualState x:Name="ResizeVertical">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="VerticalResizeGripper" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="ResizeBoth">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="Height">
											<DiscreteObjectKeyFrame KeyTime="0" Value="11" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Thumb" Storyboard.TargetProperty="HorizontalContentAlignment">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Right" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DiagonalResizeGripper" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:DropShadow Margin="6,6,1,1" />
						<Border Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" CornerRadius="2">
							<Border BorderBrush="{StaticResource RibbonPopupInnerBorderBrush}" BorderThickness="1" CornerRadius="1">
								<srp:PagingScrollViewer Orientation="Vertical">
									<StackPanel>
										<ItemsPresenter />
										<srp:Splitter Name="Thumb" Cursor="SizeNS" Padding="2,1,2,1" Background="{StaticResource RibbonPopupThumbBackgroundBrush}" BorderBrush="{StaticResource RibbonPopupThumbBorderBrush}" BorderThickness="0,1,0,0" Height="8" Visibility="Collapsed">
											<Grid>
												<Grid Name="VerticalResizeGripper" Visibility="Collapsed">
													<Path Fill="{StaticResource RibbonPopupGripperDotHighlightBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 5,0 L 7,0 L 7,2 L 5,2 Z M 10,0 L 12,0 L 12,2 L 10,2 Z M 15,0 L 17,0 L 17,2 L 15,2 Z" Margin="1,1,0,0" />
													<Path Fill="{StaticResource RibbonPopupGripperDotBrush}" Data="M 0,0 L 2,0 L 2,2 L 0,2 Z M 5,0 L 7,0 L 7,2 L 5,2 Z M 10,0 L 12,0 L 12,2 L 10,2 Z M 15,0 L 17,0 L 17,2 L 15,2 Z" />
												</Grid>
												<Grid Name="DiagonalResizeGripper" Visibility="Collapsed">
													<Path Fill="{StaticResource RibbonPopupGripperDotHighlightBrush}" Data="M 4,0 L 6,0 L 6,2 L 4,2 Z M 4,4 L 6,4 L 6,6 L 4,6 Z M 0,4 L 2,4 L 2,6 L 0,6 Z" Margin="-1,1,0,0" />
													<Path Fill="{StaticResource RibbonPopupGripperDotBrush}" Data="M 4,0 L 6,0 L 6,2 L 4,2 Z M 4,4 L 6,4 L 6,6 L 4,6 Z M 0,4 L 2,4 L 2,6 L 0,6 Z" />
												</Grid>
											</Grid>
										</srp:Splitter>
									</StackPanel>
								</srp:PagingScrollViewer>
							</Border>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ButtonGroup">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="RemoveButtonBorders" Value="False" />
		<Setter Property="ButtonPadding" Value="4,3,3,3" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ButtonGroup">
					<Border BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}">
						<srp:DividerPanel Name="Panel" DividerDarkBrush="{StaticResource ButtonGroupDividerDarkBrush}" DividerLightBrush="{StaticResource ButtonGroupDividerLightBrush}" DividerSize="0" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:Button">
		<Setter Property="BorderThickness" Value="1" />
		<Setter Property="Padding" Value="3" />
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Button">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonHotForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonHotForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Pressed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonPressedForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Disabled">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Image" Storyboard.TargetProperty="Opacity">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0.4" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock2" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SideDropDownIndicator" Storyboard.TargetProperty="Fill">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledArrowBrush}" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomDropDownIndicator" Storyboard.TargetProperty="Fill">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource ButtonDisabledArrowBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="DropDownState">
								<vsm:VisualState x:Name="NoDropDown" />
								<vsm:VisualState x:Name="BottomDropDown">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="BottomDropDownIndicator" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="SideDropDown">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SideDropDownIndicator" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="ContentState">
								<vsm:VisualState x:Name="ContentTextBottom" />
								<vsm:VisualState x:Name="ContentTextSide">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="(Grid.Row)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="(Grid.Column)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="4,0,1,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="VerticalAlignment">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Center" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="TextAlignment">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Left" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LowerText" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="ContentOnly">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LowerText" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="(Grid.ColumnSpan)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="2" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Image" Storyboard.TargetProperty="(Grid.ColumnSpan)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="2" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="TextOnly">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LowerText" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="(Grid.Row)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="(Grid.Column)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="TextAlignment">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Left" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Image" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPresenter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="SplitState">
								<vsm:VisualState x:Name="NoSplit" />
								<vsm:VisualState x:Name="VSplitLeft">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SplitSideRow" Storyboard.TargetProperty="Width">
											<DiscreteObjectKeyFrame KeyTime="0" Value="12" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="(Grid.Column)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="CornerRadius">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,2.5,2.5,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="-1,0,0,0" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="HSplitTop">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SplitBottomRow" Storyboard.TargetProperty="Height">
											<DiscreteObjectKeyFrame KeyTime="0" Value="29" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="(Grid.Row)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="CornerRadius">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,0,2.5,2.5" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,-1,0,0" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="VSplitRight">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SplitSideRow" Storyboard.TargetProperty="Width">
											<DiscreteObjectKeyFrame KeyTime="0" Value="12" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlighter" Storyboard.TargetProperty="(Grid.Column)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="CornerRadius">
											<DiscreteObjectKeyFrame KeyTime="0" Value="2.5,0,0,2.5" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,0,-1,0" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="HSplitBottom">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="SplitBottomRow" Storyboard.TargetProperty="Height">
											<DiscreteObjectKeyFrame KeyTime="0" Value="29" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Highlighter" Storyboard.TargetProperty="(Grid.Row)">
											<DiscreteObjectKeyFrame KeyTime="0" Value="1" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="CornerRadius">
											<DiscreteObjectKeyFrame KeyTime="0" Value="2.5,2.5,0,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="OtherHighlighter" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,0,0,-1" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" />
						<Grid>
							<Grid.RowDefinitions>
								<RowDefinition Height="*" />
								<RowDefinition x:Name="SplitBottomRow" Height="0" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition x:Name="SplitSideRow" Width="0" />
							</Grid.ColumnDefinitions>
							<Border Name="OtherHighlighter" Visibility="Collapsed"
									Background="{StaticResource ButtonSplitBackgroundBrush}" BorderBrush="{StaticResource ButtonSplitBorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" />
							<srp:Highlighter Name="Highlighter" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="2.5"
										 HotOuterBorderBrush="{StaticResource ButtonHotOuterBorderBrush}" HotInnerBorderBrush="{StaticResource ButtonHotInnerBorderBrush}" HotBackgroundBrush="{StaticResource ButtonHotBackgroundBrush}"
										PushedOuterBorderBrush="{StaticResource ButtonPushedOuterBorderBrush}" PushedInnerBorderBrush="{StaticResource ButtonPushedInnerBorderBrush}" PushedBackgroundBrush="{StaticResource ButtonPushedBackgroundBrush}"
										CheckedOuterBorderBrush="{StaticResource ButtonCheckedOuterBorderBrush}" CheckedInnerBorderBrush="{StaticResource ButtonCheckedInnerBorderBrush}" CheckedBackgroundBrush="{StaticResource ButtonCheckedBackgroundBrush}" />
						</Grid>
						<Grid Margin="{TemplateBinding Padding}">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="*" />
							</Grid.RowDefinitions>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>

							<!-- Image and Content -->
							<Image Name="Image" />
							<ContentPresenter Name="ContentPresenter" Content="" Grid.RowSpan="2" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />

							<!-- Text -->
							<TextBlock Name="TextBlock" Grid.Row="1" Margin="0,2,0,0" Text="{TemplateBinding DisplayText}" TextAlignment="Center" />
							<StackPanel Name="LowerText" Grid.Row="1" Margin="0,14,0,0" HorizontalAlignment="Center" Orientation="Horizontal" MaxHeight="13">
								<TextBlock Name="TextBlock2" Text="{TemplateBinding DisplayText2}" TextAlignment="Center" />
								<Path Name="BottomDropDownIndicator" VerticalAlignment="Center" Data="M 0,0 L 3.5,3.5 L 7,0" Visibility="Collapsed" Margin="2,2,0,0"
									  Fill="{StaticResource RibbonGroupButtonArrow}" />
							</StackPanel>

							<Path Name="SideDropDownIndicator" Grid.Row="0" Grid.Column="2" VerticalAlignment="Center" Margin="3,0,-1,0" Data="M 0,0 L 3.5,3.5 L 7,0" Visibility="Collapsed"
								  Fill="{StaticResource RibbonGroupButtonArrow}" />
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="RibbonGroupChromeStyle" TargetType="srp:RibbonGroupChrome">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="Padding" Value="3,2,3,0" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:RibbonGroupChrome">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="DialogLauncherState">
								<vsm:VisualState x:Name="HideDialogLauncher" />
								<vsm:VisualState x:Name="ShowDialogLauncher">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="DialogLauncher" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="SizeState">
								<vsm:VisualState x:Name="Expanded" />
								<vsm:VisualState x:Name="Collapsed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Tray" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal" />
								<vsm:VisualState x:Name="MouseOver" />
								<vsm:VisualState x:Name="Pushed" />
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Grid>
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<Rectangle Grid.Column="3" Width="1" Fill="{StaticResource RibbonGroupInnerBorderBrush}" />
							<Rectangle Grid.Column="2" Width="1" Fill="{StaticResource RibbonGroupOuterBorderBrush}" />
							<Rectangle Grid.Column="1" Width="1" Fill="{StaticResource RibbonGroupInnerBorderBrush}" />

							<Grid Margin="{TemplateBinding Padding}">
								<Grid.RowDefinitions>
									<RowDefinition Height="*" />
									<RowDefinition Height="Auto" MinHeight="16" />
								</Grid.RowDefinitions>

								<!-- Content -->
								<ContentPresenter />

								<!-- Tray -->
								<Grid Name="Tray" Grid.Row="1">
									<Grid.ColumnDefinitions>
										<ColumnDefinition Width="*" />
										<ColumnDefinition Width="Auto" />
									</Grid.ColumnDefinitions>
									<TextBlock Text="{TemplateBinding Header}" Margin="2,0,2,0" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="{StaticResource RibbonGroupHeaderBrush}" />
									<sr:Button Name="DialogLauncher" Grid.Column="1" Visibility="Collapsed" SmallImage="/Divelements.SandRibbon;component/Resources/dialoglauncher.png" AutoSize="False" VerticalAlignment="Top" Padding="4,3,3,3" TabIndex="1" />
								</Grid>
							</Grid>
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:RibbonGroup">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="SeparatorStyle">
			<Setter.Value>
				<Style TargetType="sr:Separator">
					<Setter Property="Background" Value="{StaticResource RibbonGroupSeparatorDarkBrush}" />
					<Setter Property="BorderThickness" Value="1,0,1,0" />
					<Setter Property="BorderBrush" Value="{StaticResource RibbonGroupSeparatorLightBrush}" />
					<Setter Property="IsTabStop" Value="False" />
					<Setter Property="Width" Value="3" />
					<Setter Property="Margin" Value="0,5,0,8" />
					<Setter Property="Template">
						<Setter.Value>
							<ControlTemplate TargetType="sr:Separator">
								<Border BorderThickness="{TemplateBinding BorderThickness}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" />
							</ControlTemplate>
						</Setter.Value>
					</Setter>
				</Style>
			</Setter.Value>
		</Setter>
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:StripPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonGroup">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="SizeState">
								<vsm:VisualState x:Name="Expanded" />
								<vsm:VisualState x:Name="Collapsed">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapsedDisplay" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="CollapsedButton" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<srp:RibbonGroupChrome Name="ExpandedChrome" Header="{TemplateBinding Header}" ShowDialogLauncher="{TemplateBinding ShowDialogLauncher}" Style="{StaticResource RibbonGroupChromeStyle}">
							<ItemsPresenter Name="ItemsPresenter" />
						</srp:RibbonGroupChrome>
						<sr:Button Name="CollapsedButton" Margin="0,0,3,0" HorizontalAlignment="Stretch" Visibility="Collapsed">
							<sr:Button.Template>
								<ControlTemplate TargetType="sr:Button">
									<Grid>
										<srp:Highlighter Name="Highlighter" BorderThickness="0" CornerRadius="0" Background="Transparent"
										 HotBackgroundBrush="{StaticResource RibbonGroupCollapsedHotBrush}" PushedBackgroundBrush="{StaticResource RibbonGroupCollapsedPushedBrush}" />
									</Grid>
								</ControlTemplate>
							</sr:Button.Template>
							<sr:RibbonPopup Name="Popup" Tag="{TemplateBinding Header}">
								<sr:RibbonPopup.ItemsPanel>
									<ItemsPanelTemplate>
										<Grid />
									</ItemsPanelTemplate>
								</sr:RibbonPopup.ItemsPanel>
								<srp:RibbonGroupChrome Name="CollapsedChrome" Margin="0,0,-3,0" Header="{TemplateBinding Header}" ShowDialogLauncher="{TemplateBinding ShowDialogLauncher}" Style="{StaticResource RibbonGroupChromeStyle}" />
							</sr:RibbonPopup>
						</sr:Button>
						<Grid Name="CollapsedDisplay" Visibility="Collapsed" Margin="0,0,3,0" VerticalAlignment="Top" IsHitTestVisible="False">
							<Grid.RowDefinitions>
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
								<RowDefinition Height="Auto" />
							</Grid.RowDefinitions>
							<Border BorderBrush="{StaticResource RibbonGroupButtonBorderBrush}" BorderThickness="1" CornerRadius="2" Width="31" Height="31" Background="{StaticResource RibbonGroupButtonBackgroundBrush}" Margin="3">
								<Image VerticalAlignment="Center" HorizontalAlignment="Center" Source="{TemplateBinding Image}" Width="16" Height="16" />
							</Border>
							<TextBlock Name="CollapsedTextBlock" Grid.Row="1" Margin="1,2,1,3" TextAlignment="Center" />
							<Path Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Fill="{StaticResource RibbonGroupButtonArrow}" Data="M 0,0 L 3.5,3.5 L 7,0" />
						</Grid>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="srp:TabStripTab">
		<Setter Property="Padding" Value="0,1,0,1" />
		<Setter Property="ContextualAppearance" Value="Office2010" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:TabStripTab">
					<Grid Name="RootGrid" Margin="0,1,0,1">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="InteractionState">
								<vsm:VisualState x:Name="Normal">
									<Storyboard>
										<ColorAnimation Storyboard.TargetName="LeftOuterBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="RightOuterBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="MiddleOuterBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="LeftInnerBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="RightInnerBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="MiddleInnerBorderBrush" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush1" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush2" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush3" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush4" Storyboard.TargetProperty="Color" To="Transparent" Duration="00:00:00.2" />
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimation Storyboard.TargetName="LeftOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="LeftInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush1" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotBackgroundColor1}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush2" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotBackgroundColor2}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush3" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotBackgroundColor3}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush4" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabHotBackgroundColor4}" Duration="0" />
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="Selected">
									<Storyboard>
										<ColorAnimation Storyboard.TargetName="LeftOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="LeftInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedLeftInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedRightInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedMiddleInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush1" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor1}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush2" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor2}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush3" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor3}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush4" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor4}" Duration="0" />
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,1,0,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="LeftShadow" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RightShadow1" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RightShadow2" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TabStripTabSelectedForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="SelectedMouseOver">
									<Storyboard>
										<ColorAnimation Storyboard.TargetName="LeftOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleOuterBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedOuterBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="LeftInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedLeftInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="RightInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedRightInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="MiddleInnerBorderBrush" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedMiddleInnerBorderColor}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush1" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor1}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush2" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor2}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush3" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor3}" Duration="0" />
										<ColorAnimation Storyboard.TargetName="BackgroundBrush4" Storyboard.TargetProperty="Color" To="{StaticResource TabStripTabSelectedBackgroundColor4}" Duration="0" />
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="RootGrid" Storyboard.TargetProperty="Margin">
											<DiscreteObjectKeyFrame KeyTime="0" Value="0,1,0,0" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="TextBlock" Storyboard.TargetProperty="Foreground">
											<DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource TabStripTabSelectedForegroundBrush}" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="3" />
							<ColumnDefinition Width="*" />
							<ColumnDefinition Width="3" />
						</Grid.ColumnDefinitions>
						<!-- Background -->
						<Rectangle Grid.ColumnSpan="3" Margin="1,1,1,0">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop x:Name="BackgroundBrush1" Offset="0" />
									<GradientStop x:Name="BackgroundBrush2" Offset="0.5" />
									<GradientStop x:Name="BackgroundBrush3" Offset="0.5" />
									<GradientStop x:Name="BackgroundBrush4" Offset="1" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<!-- Left -->
						<Rectangle Grid.Column="0" Width="1" HorizontalAlignment="Left" Margin="-1,3,0,1" Name="LeftShadow" Visibility="Collapsed">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop Offset="0" Color="Transparent" />
									<GradientStop Offset="0.6" Color="#08000000" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Path Grid.Column="0" Name="LeftOuterBorder" Data="M -0.5,25 L 2.5,22 L 2.5,3 L 5.5,0" Margin="-2,0,0,0">
							<Path.Stroke>
								<SolidColorBrush x:Name="LeftOuterBorderBrush" />
							</Path.Stroke>
						</Path>
						<Path Grid.Column="0" Name="LeftInnerBorder" Data="M -0.5,25 L 2.5,22 L 2.5,3 L 4.5,1" Margin="-1,0,0,0">
							<Path.Stroke>
								<SolidColorBrush x:Name="LeftInnerBorderBrush" />
							</Path.Stroke>
						</Path>
						<!-- Middle -->
						<Border Grid.Column="1" Name="Middle" BorderThickness="0,1,0,0">
							<Border.BorderBrush>
								<SolidColorBrush x:Name="MiddleOuterBorderBrush" />
							</Border.BorderBrush>
						</Border>
						<Rectangle Grid.Column="1" Name="MiddleInnerBorder" Height="1" VerticalAlignment="Top" Margin="0,1,0,0">
							<Rectangle.Fill>
								<SolidColorBrush x:Name="MiddleInnerBorderBrush" />
							</Rectangle.Fill>
						</Rectangle>
						<TextBlock Name="TextBlock" Grid.Column="1" Text="{TemplateBinding Text}" HorizontalAlignment="Stretch" TextAlignment="Center" VerticalAlignment="Center" Margin="0,2,0,1" Foreground="{StaticResource TabStripTabNormalForegroundBrush}" />
						<!-- Right -->
						<Path Grid.Column="2" Name="RightOuterBorder" Data="M 5.5,25 L 2.5,22 L 2.5,3 L -0.5,0" Margin="0,0,-2,0">
							<Path.Stroke>
								<SolidColorBrush x:Name="RightOuterBorderBrush" />
							</Path.Stroke>
						</Path>
						<Path Grid.Column="2" Name="RightInnerBorder" Data="M 4.5,25 L 1.5,22 L 1.5,3 L -0.5,1" Margin="0,0,-1,0">
							<Path.Stroke>
								<SolidColorBrush x:Name="RightInnerBorderBrush" />
							</Path.Stroke>
						</Path>
						<Rectangle Grid.Column="2" Width="1" HorizontalAlignment="Right" Margin="0,3,-1,1" Name="RightShadow1" Visibility="Collapsed">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop Offset="0" Color="#11000000" />
									<GradientStop Offset="1" Color="#15000000" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
						<Rectangle Grid.Column="2" Width="1" HorizontalAlignment="Right" Margin="0,3,-2,1" Name="RightShadow2" Visibility="Collapsed">
							<Rectangle.Fill>
								<LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
									<GradientStop Offset="0" Color="Transparent" />
									<GradientStop Offset="0.6" Color="#09000000" />
								</LinearGradientBrush>
							</Rectangle.Fill>
						</Rectangle>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:RibbonTab">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Background" Value="{StaticResource RibbonTabBackgroundBrush}" />
		<Setter Property="BorderBrush" Value="{StaticResource RibbonTabOuterBorderBrush}" />
		<Setter Property="Padding" Value="0" />
		<Setter Property="ContextualAppearance" Value="Office2010" />
		<Setter Property="ItemsPanel">
			<Setter.Value>
				<ItemsPanelTemplate>
					<srp:RibbonGroupPanel />
				</ItemsPanelTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonTab">
					<Grid>
						<Border Name="OuterBorder" BorderThickness="0,1,0,1" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}">
							<srp:PagingScrollViewer>
								<ItemsPresenter HorizontalAlignment="Left" Margin="{TemplateBinding Padding}" />
							</srp:PagingScrollViewer>
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="WindowTitleStyle" TargetType="srp:WindowTitle">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="VerticalAlignment" Value="Center" />
		<Setter Property="FontSize" Value="11.75" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:WindowTitle">
					<StackPanel Orientation="Horizontal">
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="TitleState">
								<vsm:VisualState x:Name="Both" />
								<vsm:VisualState x:Name="TitleOnly">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ApplicationName" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Divider" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="ApplicationNameOnly">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Title" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Divider" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
								<vsm:VisualState x:Name="None">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="ApplicationName" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Title" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="Divider" Storyboard.TargetProperty="Visibility">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<TextBlock Name="Title" Text="{TemplateBinding Title}" Foreground="{StaticResource RibbonTitlebarTitleBrush}" />
						<TextBlock Name="Divider" Text=" - " Foreground="{StaticResource RibbonTitlebarTitleBrush}" />
						<TextBlock Name="ApplicationName" Text="{TemplateBinding ApplicationName}" Foreground="{StaticResource RibbonTitlebarTitleBrush}" />
					</StackPanel>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:Ribbon">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Foreground" Value="{StaticResource RibbonForegroundBrush}" />
		<Setter Property="TabDividerBrush" Value="{StaticResource TabStripTabDividerBrush}" />
		<Setter Property="FontSize" Value="10.8" />
		<Setter Property="ControlAreaHeight" Value="87" />
		<Setter Property="MinimizedPopupTemplate">
			<Setter.Value>
				<ControlTemplate TargetType="sr:RibbonPopup">
					<Grid>
						<srp:DropShadow Margin="6,6,1,1" />
						<ItemsPresenter />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:Ribbon">
					<Grid>
						<vsm:VisualStateManager.VisualStateGroups>
							<vsm:VisualStateGroup x:Name="MinimizedState">
								<vsm:VisualState x:Name="Minimized" />
								<vsm:VisualState x:Name="Normal">
									<Storyboard>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="PART_TabContentHost" Storyboard.TargetProperty="Visibility" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Visible" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="MinimizedDivider" Storyboard.TargetProperty="Visibility" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed" />
										</ObjectAnimationUsingKeyFrames>
										<ObjectAnimationUsingKeyFrames Storyboard.TargetName="MinimizeButton" Storyboard.TargetProperty="SmallImage" Duration="0">
											<DiscreteObjectKeyFrame KeyTime="0">
												<DiscreteObjectKeyFrame.Value>
													<BitmapImage UriSource="/Divelements.SandRibbon;component/Resources/minimizeribbon.png" />
												</DiscreteObjectKeyFrame.Value>
											</DiscreteObjectKeyFrame>
										</ObjectAnimationUsingKeyFrames>
									</Storyboard>
								</vsm:VisualState>
							</vsm:VisualStateGroup>
						</vsm:VisualStateManager.VisualStateGroups>
						<Grid.RowDefinitions>
							<RowDefinition Height="25" />
							<!-- titlebar size -->
							<RowDefinition Height="24" />
							<RowDefinition Height="Auto" />
							<RowDefinition Height="Auto" />
						</Grid.RowDefinitions>
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="*" />
						</Grid.ColumnDefinitions>
						<!-- TabStrip Bottom Line, Continues Chrome Border -->
						<Rectangle Grid.Row="1" Height="1" VerticalAlignment="Bottom" Fill="Black" />
						<!-- Titlebar background -->
						<Border Name="TitleBar" Grid.RowSpan="2" Background="{StaticResource RibbonTitlebarBackgroundBrush}" />
						<!-- Titlebar strip -->
						<Grid Grid.Row="0">
							<!-- skip system icon for the moment -->
							<srp:TitleAligner Name="TitleAligner" Grid.Row="0" Grid.Column="0">
								<ContentPresenter Name="AboveToolBarHost" Margin="0,0,0,0" VerticalAlignment="Bottom" />
								<srp:WindowTitle Name="PART_ActualWindowTitle" HorizontalAlignment="Center" IsHitTestVisible="False" IsActive="True" Title="{TemplateBinding Title}" ApplicationName="{TemplateBinding ApplicationName}" Style="{StaticResource WindowTitleStyle}" />
							</srp:TitleAligner>
						</Grid>
						<!-- File button, tab strip, help button -->
						<Grid Grid.Row="1" Canvas.ZIndex="1">
							<Grid.ColumnDefinitions>
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="*" />
								<ColumnDefinition Width="Auto" />
								<ColumnDefinition Width="Auto" />
							</Grid.ColumnDefinitions>
							<srp:FileButton Name="ApplicationButton" Margin="2,1,1,0" sr:KeyboardAccess.Keys="F" Text="File" Color="{TemplateBinding ApplicationButtonColor}" />
							<srp:PagingScrollViewer Margin="2,0,2,-1" Grid.Column="1">
								<srp:TabStrip Name="TabStrip" Margin="1,0,0,0" />
							</srp:PagingScrollViewer>
							<sr:Button Name="MinimizeButton" Grid.Column="2" Size="Small" SmallImage="/Divelements.SandRibbon;component/Resources/maximizeribbon.png" VerticalAlignment="Center" />
							<sr:Button Name="HelpButton" Grid.Column="3" Size="Small" SmallImage="/Divelements.SandRibbon;component/Resources/help.png" VerticalAlignment="Center" />
						</Grid>
						<!-- Tab content -->
						<Border Canvas.ZIndex="0" Name="PART_TabContentHost" Grid.Row="2" Grid.ColumnSpan="2" Visibility="Collapsed">
							<Grid>
								<ContentPresenter Name="SelectedTabPresenter" Margin="0,0,0,3" Height="{TemplateBinding ControlAreaHeight}" />
								<Rectangle VerticalAlignment="Bottom" Height="3" Fill="{StaticResource RibbonLowerBackgroundBrush}" />
							</Grid>
						</Border>
						<!-- ToolBar -->
						<Rectangle Name="MinimizedDivider" Height="2" Grid.Row="3" VerticalAlignment="Top" Fill="{StaticResource RibbonMinimizedDividerBrush}" />
						<ContentPresenter Name="BelowToolBarHost" Grid.Row="3" Grid.ColumnSpan="2" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="srp:DropShadow">
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:DropShadow">
					<Grid>
						<!-- Shadow -->
						<Rectangle Name="Left" HorizontalAlignment="Left" VerticalAlignment="Stretch" IsHitTestVisible="False" />
						<Rectangle Name="TopLeft" HorizontalAlignment="Left" VerticalAlignment="Top"  IsHitTestVisible="False" />
						<Rectangle Name="Top" HorizontalAlignment="Stretch" VerticalAlignment="Top" IsHitTestVisible="False" />
						<Rectangle Name="TopRight" HorizontalAlignment="Right" VerticalAlignment="Top" IsHitTestVisible="False" />
						<Rectangle Name="Right" HorizontalAlignment="Right" VerticalAlignment="Stretch" IsHitTestVisible="False" />
						<Rectangle Name="BottomRight" HorizontalAlignment="Right" VerticalAlignment="Bottom" IsHitTestVisible="False" />
						<Rectangle Name="Bottom" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" IsHitTestVisible="False" />
						<Rectangle Name="BottomLeft" HorizontalAlignment="Left" VerticalAlignment="Bottom" IsHitTestVisible="False" />

						<ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="sr:ClientPanel">
		<Setter Property="IsTabStop"	 Value="False" />
		<Setter Property="Background" Value="{StaticResource ClientPanelBackgroundBrush}" />
		<Setter Property="HorizontalContentAlignment" Value="Stretch" />
		<Setter Property="VerticalContentAlignment" Value="Stretch" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sr:ClientPanel">
					<Border BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}">
						<ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" />
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style TargetType="srp:Highlighter">
		<Setter Property="Background" Value="Transparent" />
		<Setter Property="IsTabStop" Value="False" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="srp:Highlighter">
					<Grid>
						<Border Name="OuterBorder" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding EffectiveBackgroundBrush}" CornerRadius="{TemplateBinding CornerRadius}" BorderBrush="{TemplateBinding EffectiveOuterBorderBrush}">
							<Border Name="InnerBorder" BorderThickness="1" BorderBrush="{TemplateBinding EffectiveInnerBorderBrush}" CornerRadius="{TemplateBinding InnerCornerRadius}" />
						</Border>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

</ResourceDictionary>
